package com.yehaikeji.workflow.bean;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * 人员信息表
 * 注解：@DateTimeFormat 和 @JsonFormat 用于在接收和返回日期格式时将其格式化
 * 实体类对应的数据表为：  user_info
 * @author XiaChengwei 
 * @date:  2017-07-14 16:45:29
 */
public class user {
	
    private String userid;
	
    private String password;

    private String name;

    private Integer type;

    private Integer sort;
    
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdate;
    
    private String ipaddress;
    
    private String accessToken;

    
    public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

	public Date getCreatedate() {
		return createdate;
	}

	public String getIpaddress() {
		return ipaddress;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public void setIpaddress(String ipaddress) {
		this.ipaddress = ipaddress;
	}
    
}